﻿@model Common.Background.WebManageRoles
@{
    ViewBag.Title = "Details";
}
@Html.Partial("ContentListTag.Partial", new List<Common.Background.Models.LinkModel> { new Common.Background.Models.LinkModel("角色详细") })

<fieldset>
    <legend>角色信息</legend>
    <div class="display-label">
        编号
    </div>
    <div class="display-field">@Model.ManageRoleID</div>
    <div class="display-label">
        角色名称
    </div>
    <div class="display-field">@Model.RoleName</div>
    <div class="display-label">
        所在部门
    </div>
    <div class="display-field">@Model.WebDepartments.DepartmentName<em>(@Model.DepartmentID)</em></div>
    <div class="display-label">
        此角色的用户
    </div>
    <div class="display-field">
        @foreach (var user in Model.WebManageUsers)
        {
            <span>@user.LoginName,</span>
        }
    </div>
    <div class="display-label">
        此角色的所可见的菜单
    </div>
    <div class="display-field">
        @foreach (var menu in Model.WebManageMenus)
        { 
            <span>@menu.MenuName,</span>
        }
    </div>
    <div class="display-label">
        说明
    </div>
    <div class="display-field">@Model.About</div>
    <div class="display-label">
        更新时间
    </div>
    <div class="display-field">@String.Format("{0:g}", Model.UpdateDate)</div>
    <div class="display-label">
        排序
    </div>
    <div class="display-field">@Model.SortNumber</div>
    <div class="display-label">
        操作者
    </div>
    <div class="display-field">@Model.Operator</div>
    <div class="display-label">
        状态
    </div>
    <div class="display-field">
        @(((EntityFrameworks.Entity.Core.CommonEnums.Status)Model.Status).GetDescription())
    </div>
    <div class="display-label">
        操作权限
    </div>
    <div class="display-field">@(((OperatorAuthority)Model.OperatorAuthority).GetDescription())</div>
</fieldset>
